/**
 * @author 云离
 * @date: 2018/12/28
 */
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Modal } from 'antd'
import ResetPw from './ResetPw'
class ResetPwDlg extends Component {
    static propTypes = {
        visible: PropTypes.bool.isRequired,
        okCb: PropTypes.func.isRequired,
        cancelCb: PropTypes.func.isRequired
    }
    render() {
        return (
            <Modal
                title="重置密码"
                visible={this.props.visible}
                onOk={this.props.handleOk}
                onCancel={this.props.cancelCb}
                footer={null}>
                <ResetPw handleClose={this.props.cancelCb}/>
            </Modal>
        )
    }
}

export default ResetPwDlg
